﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="capnhattintuc.aspx.cs" Inherits="admin_capnhattintuc" ValidateRequest="false"%>

<%@ Register assembly="FreeTextBox" namespace="FreeTextBoxControls" tagprefix="FTB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../Scripts/scw.js" type="text/javascript"></script>
    <style type="text/css">
        .headertilte{
         	font-size:35px;
            color:#39629F;
            font-weight:bold;
            text-align:center;
            margin:0;
            width:100%;
            padding:10px 0px 10px 0px;
            border-bottom:1px solid #ededed;
         	}
         	 .TabArea
            {
                background-color: White;
                font-size:12pt;
                border-left: 1px solid #2769FF;
                border-bottom: 1px solid #2769FF;
                border-right: 1px solid #2769FF;
                border-top:1px solid #2769FF;
                position:relative;
                display:table;
                top:12px;
                left:0px;
                padding-bottom:50px;
                padding-left:20px;
                width:790px;
                margin:0px 10px 10px auto;
				z-index:1;
            }
        .Menutabcontrol
        {
			
		    position:absolute;        
		    
            z-index:2;
        }
        .tabbodytext
        {
	        font-family:Verdana, Tahoma;
	        font-size:12px;
	        color:#284870;
	        font-weight:bold;	
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="headertilte">
        <asp:Label ID="lbhead" runat="server" Text="Label"></asp:Label></div>
     <table border="0" cellpadding="0" cellspacing="0" width="780px">        
            <tr>
            <td style="height: 27px">
            <asp:Menu CssClass="Menutabcontrol"
                ID="Menu1"
                Width="168px"
                runat="server"
                Orientation="Horizontal"
                StaticEnableDefaultPopOutImage="False" onmenuitemclick="Menu1_MenuItemClick" 
               >
                <Items>
                    <asp:MenuItem ImageUrl="~/admin/Images/activebar0.gif" Text="" Value="0"></asp:MenuItem>
                    <asp:MenuItem ImageUrl="~/admin/Images/offbar1.gif" Text="" Value="1"></asp:MenuItem>
                    
                </Items>
            </asp:Menu>
            </td>
            <td align="right" style="height: 27px">
             <asp:HyperLink ID="HLback" Text="« Quay lại" runat="server" Font-Bold="True" 
                    Font-Italic="True" NavigateUrl="~/admin/QuanLyTinTuc.aspx" ></asp:HyperLink>
            </td>
               
            </tr>
            </table>
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <table cellpadding="0" cellspacing="0" style="height:100%" width="790">
                <tr valign="top">
                    <td class="TabArea">
                        <table border="0" cellpadding="0" cellspacing="5" style="width:100%">
                            <tr height="35px">
                                <td class="tabbodytext" style="width: 166px">
                                    Tiêu đề:*</td>
                                <td style="width: 577px;padding-top:10px">
                                    <asp:TextBox ID="txttieude" runat="server" Height="50px" Width="577px" 
                                        TextMode="MultiLine"></asp:TextBox>
                                 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txttieude" ErrorMessage="*"></asp:RequiredFieldValidator>
                                 
                                </td>
                            </tr>
                            <tr height="35px">
                                <td class="tabbodytext" style="width: 166px; ">
                                    Ngày đăng:*</td>
                                <td style="width: 577px; ">
                                    
                                    <asp:TextBox ID="txtdatetime" runat="server" Width="100px"></asp:TextBox>
                                    <img alt="Click here to select date" height="13" 
                                        onclick="scwShow(scwID('<%=txtdatetime.ClientID %>'),event);" 
                                        src="../images/icon_calendar.gif" width="15" />
                                </td>
                            </tr>
                            <tr>
                                <td class="tabbodytext" style="width: 166px; height: 252px;" valign="top">
                                    Nội dung trích dẫn:*<br />
                                </td>
                                <td style="width: 577px; height: 252px;">
                                    <%--<FTB:FreeTextBox ID="FTBGioiThieu" runat="server" 
                                        AutoGenerateToolbarsFromString="True" ImageGalleryPath="~/Images" 
                                        ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorP
                                            icker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough
                                            ,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull
                                             ;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|
                                             Cut,Copy,Paste,Delete;Undo,Redo,Print|SymbolsMenu|InsertRule,InsertDate,InsertTime
                                            ;InsertTable|InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell">
                                    </FTB:FreeTextBox>--%>
                                    <asp:TextBox ID="FTBGioiThieu" runat="server" TextMode="MultiLine" Width="577px" Height="252px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="FTBGioiThieu" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 166px; ">
                                </td>
                                <td style="width: 577px; ">
                                </td>
                            </tr>
                            <tr>
                                <td class="tabbodytext" style="width: 166px; height: 400px;" valign="top">
                                    Nội dung chi tiết:*<br />
                                   
                                    <asp:Label ID="lbrqchitiet" runat="server" CssClass="requireDataText" Text=""></asp:Label>
                                </td>
                                <td style="width:650px; height: 16px;" valign="top">
                                    <FTB:FreeTextBox ID="FTBchitiet" runat="server" 
                                        AutoGenerateToolbarsFromString="True" ImageGalleryPath="~/Images" 
                                        ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorP
                                            icker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough
                                            ,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull
                                             ;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|
                                             Cut,Copy,Paste,Delete;Undo,Redo,Print|SymbolsMenu|InsertRule,InsertDate,InsertTime
                                            ;InsertTable|InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell">
                                    </FTB:FreeTextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                        ControlToValidate="FTBchitiet" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="height:30px">
                                <td style="width: 166px; " class="tabbodytext">
                                    Nguồn:</td>
                                <td style="width: 577px; ">
                                    <asp:TextBox ID="txtnguon" runat="server"></asp:TextBox>
                                    <asp:HiddenField ID="hdidkm" runat="server" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                        ControlToValidate="txtnguon" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr height="35px" valign="top">
                                <td class="tabbodytext" style="width: 166px; ">
                                    Ảnh mô tả:</td>
                                <td style="width: 577px; ">
                                    <div style="text-align:center;width:132px;"><img name="imgSanPham" id="imgSanPham" runat="server" height="80" width="80"/></div>
                                    <div style="text-align:center;width:132px"><input type="button" class="btupload" value=" Upload Picture" onclick='window.open("Uploadimage.aspx?ActUpload=tintuc","","width=420,height=200,menubar=no,scrollbars=yes")' />
                                        <asp:HiddenField ID="hdimage" runat="server" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 166px">
                                </td>
                                <td style="width: 577px">
                                    <asp:Button ID="btcapnhat" runat="server" Text="Cập Nhật" 
                                        onclick="btcapnhat_Click" />
                                    <asp:Button ID="btreset" runat="server" Text="Làm lại" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
        <div class="boxLeftPart" style="padding-left:10px;padding-top:20px">
    <asp:Label ID="lbNgayDang" runat="server" Text=""></asp:Label>
    <h2>
        <asp:Label ID="lbTieuDe" runat="server" ForeColor="Blue"></asp:Label>
    </h2>
    <br />
    <asp:Label ID="lbgioithieu" runat="server" Font-Bold="True" Text="Label" 
        ForeColor="#999999"></asp:Label>
    <br />
    <br />
    <div style="width:100%;	height:332px;	margin:0 auto;	text-align:center;padding-bottom:40px">
        <img alt="" width="500" height="332" id="imgHinhDaiDien" runat="server" style="border:1px Solid Gray;" />
    </div>
    <div>
        <asp:Literal ID="lbNoiDung" runat="server"></asp:Literal> 
    </div>

    <div style="margin-top:10px">
    </div>
</div>
        </asp:View>
    </asp:MultiView>
</asp:Content>

